import request from '@/utils/request'

export function getAllFaultInfo(pageNum) {
  return request({
    url: '/fault/table/all',
    method: 'GET',
    params: { pageNum }
  })
}

export function getFaultInfo(faultId) {
  return request({
    url: '/fault/table/one',
    method: 'POST',
    params: { faultId }
  })
}

export function addFaultInfo(data) {
  return request({
    url: '/fault/addFaultInfo',
    method: 'POST',
    data
  })
}
